// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.ai.states;

import zombie.ai.State;
import zombie.characters.IsoGameCharacter;
import zombie.core.skinnedmodel.advancedanimation.AnimEvent;
import zombie.util.StringUtils;

public final class IdleState extends State {
    private static final IdleState _instance = new IdleState();

    public static IdleState instance() {
        return _instance;
    }

    @Override
    public void animEvent(IsoGameCharacter owner, AnimEvent event) {
        if (event.m_EventName.equalsIgnoreCase("PlaySound") && !StringUtils.isNullOrEmpty(event.m_ParameterValue)) {
            owner.getSquare().playSound(event.m_ParameterValue);
        }
    }
}
